package com.caishi.lkx.user.api;


import com.caishi.lkx.common.AdminBaseApi;
import com.caishi.lkx.user.model.AgentLevelModel;
import com.caishi.lkx.user.service.IAgentLevelService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Tag(name = "代理商等级接口")
@RestController
@RequestMapping("/user/cu/agent/level")
public class AgentLevelApi extends AdminBaseApi<IAgentLevelService, AgentLevelModel, String> {

    @Resource
    private IAgentLevelService agentLevelService;

    @Override
    public IAgentLevelService loadService() {
        return agentLevelService;
    }

    @DeleteMapping("/deleted-list")
    public Boolean delete(@RequestParam List<String> ids) {
        return loadService().delete(ids);
    }

}
